package designpattern.singleton;
//5、登记式/静态内部类
public class Singleton5 {
	private Singleton5(){
	}
	private static class inner{
		private static final Singleton5 INSTANCE=new Singleton5();
	}
	public static Singleton5 getInstance() {
		return inner.INSTANCE;
	}
}
